/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.beyondsoft.sabg.edu.service.core;

import com.beyondsoft.sabg.edu.model.db.core.BinaryFile;
import com.beyondsoft.sabg.edu.model.db.core.Image;
import com.beyondsoft.sabg.edu.repository.core.BinaryFileRepository;
import com.beyondsoft.sabg.edu.service.SimpleService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


public interface BinaryFileService extends SimpleService<BinaryFile, BinaryFileRepository> {

    Image saveImage(MultipartFile file) throws IOException;

    BinaryFile saveBinaryFile(MultipartFile file) throws IOException;

}
